package com.snts.synchronization.server;

import java.util.Date;
import com.snts.synchronization.core.UUID;

public interface SessionManager {

	Session createSession();
	Session getSession(String sessionId);
	
	public class Session {

		private String id;
		private UUID restaurantId;
		protected long time = new Date().getTime();

		/**
		 * @param id
		 */
		public Session(String id) {
			super();
			this.id = id;
		}

		public String getId() {
			return id;
		}

		public UUID getRestaurantId() {
			return restaurantId;
		}

		public void setRestaurantId(UUID restaurantId) {
			this.restaurantId = restaurantId;
		}

	}	

}
